#include	<QtCore/QCoreApplication>
#include	<QDebug>
#include    <QThread>
#include	<iostream>
#include    <QDateTime>

#include   <QtNetwork/QUdpSocket>
#include   <QHostAddress>

class myUDP : public QThread
{
    Q_OBJECT
public:
    myUDP();
    ~myUDP();
    virtual void run();

    bool ready2send;
    QByteArray sendBuf;

    bool packet_testing;

    QUdpSocket *udpSocket;

public slots:
    void readCmd();
    void sendResult(char*,int);

signals:
    void startOrStop(bool);
};
